package com.food.admin.exception.productsTypeException;

public enum ProductsTypeExceptionCode {
    PRODUCTS_TYPE_EXCEPTION_EXIST(1001,"餐品类型已存在！"),
    PRODUCTS_TYPE_EXCEPTION_NULL(1002,"还未创建过餐品类型，请先创建！"),
    PRODUCTS_TYPE_EXCEPTION_NOT_EXIST(1003,"该类型不存在！"),
    PRODUCTS_TYPE_EXCEPTION_DELETED(1004,"该类型已经被删除！"),
    PRODUCTS_TYPE_EXCEPTION_NORMAL(1005,"该类型已经是上架状态！"),
    PRODUCTS_TYPE_EXCEPTION_TAKE_DOWN(1006,"该类型已经是下架状态！"),
    PRODUCTS_TYPE_EXCEPTION_DELETE(1007,"该类型已经是删除状态！"),
    PRODUCTS_TYPE_EXCEPTION_NEED_TAKE_DOWN(1008,"需要先下架次类别及旗下菜品"),
    PRODUCTS_TYPE_EXCEPTION_ERROR(1009,"参数异常！"),
    PRODUCTS_TYPE_EXCEPTION_UPDATE_ERROR(1010,"不能更新为已存在的类型"),
    PRODUCTS_TYPE_EXCEPTION_CANNOT_DELETE(1011,"该类别下还有菜品，需要先通知商家删除");

    Integer code;
    String message;

    ProductsTypeExceptionCode(Integer code, String message){
        this.code=code;
        this.message=message;
    }

    public Integer getCode(){return code;}
    public String getMessage(){return message;}
}
